Skip to content

feat(peer, cli): support peer aliases and network invitation tickets (#197, #198) - #257

Merged
vxfemboy merged 1 commit into
mainfrom
feat/peer-aliases-and-ticket-qr
Nov 17, 2026
Merged

vxfemboy merged 1 commit into
mainfrom
feat/peer-aliases-and-ticket-qr

Conversation

@vxfemboy

Copy link
Copy Markdown
Member

Summary

  • Supports optional human-readable peer aliases across PeerConfig, configuration parsing, ControlCmd::AddPeer RPC, and PeerStats.
  • Enables case-insensitive peer resolution by alias in PeerManager (find_peer_by_alias, peer_pubkey, and lookup fallback in find_peer_index_by_id), allowing CLI commands (peer remove, peer set-transport, ping, trace, crypto) to accept friendly peer aliases as drop-in alternatives to full 64-hex public keys or IPv6 node addresses.
  • Implements NetworkTicket schema in bin/yipd/src/ticket.rs compatible with cross-platform clients (yip-client), supporting Base64 serialization, JSON payloads, and yip://join?ticket={b64} invitation URIs.
  • Adds compact Unicode half-block QR code generation using qrcode 0.14 with Dense1x2 glyphs.
  • Exposes ControlCmd::CreateTicket RPC command and responses (ControlResponse::Ticket) over /run/yipd/yip.sock.
  • Adds CLI subcommands 'yip ticket create' and 'yip ticket show'.

Closes #197
Closes #198

…197, #198)

- Support optional peer aliases in PeerConfig, config parser, ControlCmd::AddPeer, and PeerStats.
- Support case-insensitive peer resolution by human-readable alias in PeerManager and control commands.
- Implement NetworkTicket schema in bin/yipd/src/ticket.rs compatible with yip-client.
- Render compact terminal Unicode QR codes using qrcode Dense1x2.
- Expose ControlCmd::CreateTicket over UNIX control socket /run/yipd/yip.sock.
- Add CLI subcommands 'yip ticket create' and 'yip ticket show'.

Closes #197, Closes #198
@vxfemboy
vxfemboy temporarily deployed to benchmark-approval November 17, 2026 21:54 — with GitHub Actions Inactive
@vxfemboy
vxfemboy temporarily deployed to benchmark-approval November 17, 2026 21:54 — with GitHub Actions Inactive
@vxfemboy
vxfemboy merged commit 048af47 into main Nov 17, 2026
13 checks passed
@vxfemboy
vxfemboy deleted the feat/peer-aliases-and-ticket-qr branch November 17, 2026 22:22

This branch was previously deployed

1 inactive deployment
benchmark-approval — e221a7ff Deployed Nov 17, 2026 by vxfemboy via benchmarks #197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant